package cn.ryh.rabbitmq.topic.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;

/**
 * @author Raoyh
 * @Description
 * @create 2022-07-13 16:56
 */
// @RabbitListener(queues = "sms.topic.queue")
// @Component("topicSmsConsumer")
@Slf4j
public class SmsConsumer {
    @RabbitHandler
    public void messageConsumer(String message){
        // 此处省略发邮件的逻辑
        log.info("topic sms-------------->" + message);
    }
}
